package com.peter.spring.framework.webmvc.servlet;

import java.util.Map;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/20 21:31
 * @Description:
 */
public class XDModelAndView {

    private String viewName;//视图名称
    private Map<String,?> model;//视图参数

    public XDModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public XDModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }
}
